package com.yc.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan({"com.yc.springmvc.service","com.yc.springmvc.biz"})
//加载properties文件中的属性
@PropertySource("classpath:jdbc.properties")
//加载JdbcConfig和MybatisConfig
@Import({JdbcConfig.class,MybatisConfig.class})
public class SpringConfig {
}
